/* string 类型转换 */
#include <iostream>
#include <string>

using namespace std;

int main(int argc, char **argv)
{
    const char *str = NULL;
    string str1("hello");

    str = str1.c_str();

    cout << str << endl;

    return 0;
}